/**
 * @author furthurr
 */
var win = Titanium.UI.currentWindow;
win.backgroundImage = '../../imgs/WallMedicinaPRE.png';
var odontologia = Titanium.UI.createButtonBar({
 	style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	backgroundColor:'#C0C0C0',
    labels:[''],
	top:190,
	left:85,
    height:26,
    width:153		
});
var btclose=Titanium.UI.createLabel({
    text:'Licenciaturas',
    backgroundlColor: 'transparent',
	width:'125',
	height:'auto',
	font:{fontSize:13, fontFamily:'AppleGothic'},
    	textAlign:'center'	
});

var btodo=Titanium.UI.createLabel({
    text:'Odontologia',
    backgroundlColor: 'transparent',
	width:'125',
	height:'auto',
	font:{fontSize:13, fontFamily:'AppleGothic'},
    	textAlign:'center'	
});
odontologia.add(btodo);
var bclose = Titanium.UI.createButtonBar({
 	style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
	backgroundColor:'#C0C0C0',
    labels:[''],
	top:38,
	left:0,
    height:26,
    width:96		
});

bclose.add(btclose);
win.add(odontologia)
win.add(bclose);
bclose.addEventListener('click', function (e){
	var Menu = Titanium.UI.createWindow({
		url:'../appLicenciaturas.js'
	});
	Menu.open({transition:Ti.UI.iPhone.AnimationStyle.CURL_DOWN});
});

odontologia.addEventListener('click', function (e){
	Titanium.API.info("Abriendo Odontologia ");
	var w = Ti.UI.createWindow({
		url:'appOdontologia.js'
	});
            var b = Titanium.UI.createButton({
                title:'Close',
                style:Titanium.UI.iPhone.SystemButtonStyle.PLAIN
            });
            w.setLeftNavButton(b);
            b.addEventListener('click',function()
            {
                w.close();
            });
            w.open({modal:true});
       
});
